/**
 * 
 */
package com.cqan.attachment.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cqan.attachment.dao.AttachmentDao;
import com.cqan.attachment.entity.Attachment;
import com.cqan.attachment.service.AttachmentService;
import com.cqan.service.impl.EntityServiceImpl;

/**
 * @Description TODO
 * @author wuhui
 * @date 2012-5-5上午9:50:28
 *
 */
@Service("attachmentService")
public class AttachmentServiceImpl extends EntityServiceImpl<Attachment,Long, AttachmentDao>
		implements AttachmentService {

	
	@Override
	@Autowired
	public void setEntityDao(AttachmentDao entityDao) {
		this.entityDao = entityDao;
	}

	
	@Override
	public Attachment findAttachmentByMd5(String md5) {
		
		return entityDao.findUniqueBy("md5", md5);
	}


}
